package com.psmz.mqim.settings;

import com.ibm.mq.MQEnvironment;
import com.ibm.mq.MQException;

/**
 * Przechowuje ustawienia IBM MQ Series
 * 
 * @author pszwarc
 * 
 */
public class MQSeriesSettings {

	private String sendQueueName;
	private String receiveQueueName;
	private String queueManager;

	public MQSeriesSettings() {
		// wylaczenie loga MQSeries
		MQException.log = null;
	}

	public String getSendQueueName() {
		return sendQueueName;
	}

	public void setSendQueueName(String sendQueueName) {
		this.sendQueueName = sendQueueName;
	}

	public String getReceiveQueueName() {
		return receiveQueueName;
	}

	public void setReceiveQueueName(String receiveQueueName) {
		this.receiveQueueName = receiveQueueName;
	}

	public int getPort() {
		return MQEnvironment.port;
	}

	public void setPort(int port) {
		MQEnvironment.port = port;
	}

	public void setChannelName(String channelName) {
		MQEnvironment.channel = channelName;
	}

	public String getChannelName() {
		return MQEnvironment.channel;
	}

	public String getHostname() {
		return MQEnvironment.hostname;
	}

	public void setHostname(String hostName) {
		MQEnvironment.hostname = hostName;
	}

	public String getQueueManager() {
		return queueManager;
	}

	public void setQueueManager(String queueManager) {
		this.queueManager = queueManager;
	}

}
